<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    
    function Fn(n){
        this.name = n;
    }
    Fn.prototype.show = function(){
        console.log(this.name);
    }
    const f1 = new Fn("admin");
    console.log(f1);
    f1.show();

    // const f3 = new Fn;
    // console.log(f3);



    class Fun{
        constructor(n){
            this.name = n;
        }
        show(){
            console.log(this.name);
        }
    }
    const f2 = new Fun("root");
    console.log(f2);
    f2.show();

    // const f4 = new Fun;
    // console.log(f4);





</script>
</html>